<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<TITLE>涉案物资系统</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<link rel="stylesheet" href="/pxglxt/css/form.css" type="text/css"
	media="screen" />
<style type="text/css">
.login_bg {
	background: #fff url(/pxglxt/images/login/login_top_background.png) top
		right repeat-x;
}

#wrapper_login {
	width: 630px;
	margin: 100px auto;
}

#wrapper_about {
	width: 500px;
	padding: 8px;
	margin: 0px auto;
}

#wrapper_about h2 {
	font-weight: bold;
}

#wrapper_about li {
	font-size: 12px;
	line-height: 100%;
}

#wrapper_report {
	width: 820px;
	padding: 8px;
	margin: 0px auto;
}

#wrapper_box {
	width: 430px;
	padding: 8px;
	margin: 0px auto;
}

#login_header {
	width: 100%;
	height: 66px;
	background: url(/pxglxt/images/login/login_box_top.png) top left
		no-repeat;
}

#login_header .versionNumber {
	float: left;
	width: 30%;
	font-size: 12px;
	padding-top: 45px;
	padding-left: 10px;
}

#login_header .login_links {
	width: 60%;
	float: right;
	text-align: right;
	padding-top: 10px;
	padding-right: 10px;
}

#login_header .login_links a {
	font-size: 12px;
}

#login_body {
	width: 100%;
	height: 205px;
	background: url(/pxglxt/images/login/login_main_bg.png) top left
		no-repeat;
}

#login_body .login_logo {
	float: left;
	width: 30%;
	padding-left: 25px;
}

#login_body .login_form {
	width: 63%;
	float: right;
}

#login_body .login_form label {
	display: inline-block;
	float: left;
	line-height: 1.8;
	font-size: 12px;
	width: 80px;
	color: #000;
	vertical-align: middle;
}

#login_body .login_form p {
	margin: 0.4em 0;
}

#login_body .mar {
	padding-left: 84px;
}

.graytext {
	color: #888;
}

#login_bottom {
	width: 100%;
	height: 36px;
	color: #5F5F5F;
	font-size: 12px;
	text-align: right;
	padding-top: 8px;
	background: url(/pxglxt/images/login/login_box_bottom.png) top left
		no-repeat;
}

#login_bottom span {
	margin: 0px 8px 0px 0px;
}

.narrow_box {
	border: 1px #7F9DB9 solid;
	height: 19px;
	width: 200px;
}

.narrow_box1 {
	border: 1px #7F9DB9 solid;
	height: 17px;
	width: 120px;
}

.width_box {
	border: 1px #7F9DB9 solid;
	height: 19px;
	width: 400px;
}

.text_box {
	border: 1px #7F9DB9 solid;
	height: 200px;
	width: 400px;
}

input.s_button {
	height: 22px;
	vertical-align: bottom;
	padding: 0px 10px 0px 10px;
	font: normal 12px sans-serif;
	margin-right: 10px;
}

.comments_form {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-weight: inherit;
	font-style: inherit;
	font-size: 100%;
	font-family: inherit;
	vertical-align: baseline;
}
</style>
<script>
      function init(frm){
        frm.username.focus();
        
          var errText = document.getElementById("errtip").innerHTML;
    	  if (errText.length !=0){
    	  	   var errTip = document.getElementById("status").innerHTML;
    	  	   document.getElementById("tooltip").innerHTML = "<br /><font color='red'>" + errTip + "</font><br /><br />";
    	  	}else{
    	  //	  document.getElementById("tooltip").innerHTML = "欢迎登录。如果您没有用户名和密码，请联系系统管理员。"	;
    		document.getElementById("tooltip").innerHTML = "<br /><font color='red'>${message}</font><br /><br />"	;
        	}
    	 
      }
      
      function formClick(){
        if(window.event && window.event.keyCode == 13){
          formSubmit(document.comments_form);
        }
      }
      
      function formSubmit(frm){
        var f = document.getElementById("username").value;
        if(f == ""){
          document.getElementById("tooltip").innerHTML = "<br /><font color='red'>用户名不能为空！</font><br /><br />";
          return false;
        }
        var f = document.getElementById("password").value;
        if(f == ""){
          document.getElementById("tooltip").innerHTML = "<br /><font color='red'>密码不能为空！</font><br /><br />";
          return false;
        }
        
        return true;
      }
      function enterSoftWareAbout(){
		    var url="page/about.html";
				var iHeight=360;
				var iWidth=556;
				var iTop=(window.screen.availHeight-30-iHeight)/2;
				var iLeft = (window.screen.availWidth-10-iWidth)/2;
				var win=window.open(url,'关于', 'height='+iHeight+', width='+iWidth+',top='+iTop+',left='+iLeft+',status=no,scrollbars=no, resizable=no');
		    win.focus();
		}
      function enterSoftWareLic(){
		    var url="page/arguments.html";
				var iHeight=560;
				var iWidth=556;
				var iTop=(window.screen.availHeight-30-iHeight)/2;
				var iLeft = (window.screen.availWidth-10-iWidth)/2;
				var win=window.open(url,'软件许可', 'height='+iHeight+', width='+iWidth+',top='+iTop+',left='+iLeft+',status=no,scrollbars=yes, resizable=no');
		    win.focus();
		} 

      function ValidPassword(source, arguments) {
          var pwd = document.getElementById("tbxPassword").value;
          var pwd2 = document.getElementById("tbxPassword2").value;
          if (pwd != "") {
              if (pwd2 == "") {
                  document.getElementById("_Password").innerText = "请再次输入密码！";
                  arguments.IsValid = false;

              }
              else {
                  if (pwd != pwd2) {
                      document.getElementById("_Password").innerText = "两次密码不一致！";
                      arguments.IsValid = false;

                  }
              }
          }
      }     
      <%String realName = request.getParameter("realName");
			if (realName != null) {
				session.removeAttribute("sessionAccount");
				session.removeAttribute("realName");
			}%>
    </script>
</HEAD>
<BODY class="login_bg" onload="init(document.comments_form)">

<div id="wrapper_login">
<div id="login_header">
<div class="versionNumber">版本号:Beta-20110604</div>
<div class="login_links"><a href="javascript:void(0)"
	onclick=enterSoftWareLic();
>软件许可</a> | <a href="javascript:void(0)"
	onclick=
	enterSoftWareAbout();
>关于</a> | <a href="javascript:void(0)"
	onclick=
	window.open();
>帮助</a></div>
</div>
<div id="login_body">
<div class="login_logo"><img
	src="/pxglxt/images/login/login_box_logo.png" width="205" height="179"
	border="0" alt=""></div>
<div class="login_form">
<form id="comments_form" name="comments_form" method="post"
	action="<c:url value="/user_list/handleLogin"/>"
	onsubmit="return formSubmit(this);">
<p class="greytext" id="tooltip"><br />
欢迎登录。如果您没有用户名和密码，请联系系统管理员。<br />
<br />
</p>
<font color="red">
<div id="errtip" style="display: none"></div>
</font> <!-- <div style="color: red;">${message}</div> -->
<p><label for="username">用户名：</label> <input id="username"
	class="narrow_box" name="username" type="text" size="15" maxlength="20"
	onfocus=""></p>
<p><label for="password">密码：</label> <input id="password"
	class="narrow_box" name="password" type="password" size="15"
	maxlength="20"></p>
<p><label for="user_type">我是：</label><select id="user_type"
	name="user_type" style="width: 100px; height: 22px; font-size: 15px;">
	<option value="员工">员工</option>
	<option value="教师">教师</option>
	<option value="学员">学员</option>
</select></p>
<p class="mar"><br>
<input type="submit" class="s_button" value="登 录"></p>
<!-- 以下内容必须提供 --> <input type="hidden" name="lt" value="" /> <input
	type="hidden" name="_eventId" value="submit" /></form>
</div>
</div>
<div id="login_bottom"><span>涉案物资系统&copy 2012 最佳浏览体验:
<a href="../../down/IE7-WindowsXP-x86-chs.rar">IE7.0</a></span></div>
</div>
</BODY>
</HTML>


